<?php namespace Phpcmf\Controllers\Member;

/**
 * 二次开发时可以修改本文件，不影响升级覆盖
 */

class Quantie extends \Phpcmf\Member\Mform
{

    public function index() {
        $this->_Member_List();
    }

    public function add() {
        // get 参数 cid
		$cid = \Phpcmf\Service::L('input')->get('cid');
		$quan_data = \Phpcmf\Service::M()->db->table('1_quan')->where('id', $cid)->get()->getRowArray();
        
		if($quan_data['kaifangfabu'] == 0) {
			if($quan_data['uid'] != $this->uid) {
                $this->_json('-1', '本圈没有开发发帖');
            }
		}
        $this->_Member_Add();
    }

    public function edit() {
        $this->_Member_Edit();
    }

    public function order_edit() {
        $this->_Member_Order();
    }

    public function del() {
        $this->_Member_Del();
    }
}
